package com.gxkj.drm.sdk.client.rmi;

import com.gxkj.drm.sdk.annotation.ManagedAttribute;
import com.gxkj.drm.sdk.annotation.ManagedResource;
import com.gxkj.drm.sdk.client.HelloController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
@ManagedResource(objectNameDesc = "com.gxkj.drm.sdk.client.rmi:Threshold=LocalCacheSwitch")
public class CouponRmiEntity {
    private static final Logger logger = LoggerFactory.getLogger(CouponRmiEntity.class);
    @ManagedAttribute
    private String userLoginSwitch;//用户登录服务接口开关

    public void setUserLoginSwitch(String userLoginSwitch) {
        logger.info("rmi 传过来的参数为："+userLoginSwitch);
        this.userLoginSwitch = userLoginSwitch;
    }
}
